package cn.wolfcode.wolf2w.spot.service.impl;

import cn.wolfcode.wolf2w.spot.api.domain.SpotContext;
import cn.wolfcode.wolf2w.spot.mapper.SpotContextMapper;
import cn.wolfcode.wolf2w.spot.query.SpotContextQuery;
import cn.wolfcode.wolf2w.spot.service.ISpotContextService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 景点内容Service业务层处理
 * 
 * @author dalang
 * @date 2023-11-23
 */
@Service
@Transactional
public class SpotContextServiceImpl extends ServiceImpl<SpotContextMapper,SpotContext> implements ISpotContextService {

    @Override
    public IPage<SpotContext> queryPage(SpotContextQuery qo) {
        IPage<SpotContext> page = new Page<>(qo.getCurrentPage(), qo.getPageSize());
        return lambdaQuery()
                .page(page);
    }
}
